<div id="weighList">




<script type="text/javascript">
$("#checkAll").checkall({itemName : "name"});
</script>

<a id="weighBtn" class="btn btn-primary"
		href="javascript:void(0);" onclick="Group.weigh();"><@spring.message code='lun.qos.weight'/></a>
<#include "/component/pagination.html" />
<table class="table table-striped table-hover">
    <thead>
	<tr>
		<th width="3%" scope="col"><input
			id="checkAll" type="checkbox" value=""
			onClick="CheckSelect(this.form);return false;" /></th>

<!-- 	    <th width="20%" scope="col"><@spring.message code='lun.lun_name'/></th> -->
<!-- 		<th width="20%" scope="col"><@spring.message code='lun.pool'/></th> -->
<!-- 		<th width="20%" scope="col"><@spring.message code='lun.totalSize'/>(MB)</th> -->
<!-- 		<th width="20%" scope="col"><@spring.message code='lun.objects'/></th> -->
<!-- 		<th width="20%" scope="col"><@spring.message code='lun.objectSize'/>(KB)</th> -->
            <th width="30%" scope="col"><@spring.message code='lun.pool_name'/></th>
			<th width="30%" scope="col"><@spring.message code='lun.lun_name'/></th>
		<!-- 	<th width="20%" scope="col"><@spring.message code='lun.lun_sn'/></th>
			<th width="20%" scope="col"><@spring.message code='lun.lun_iscsi'/></th> -->
			<th width="20%" scope="col"><@spring.message code='lun.size'/> (MB)</th>
			<th width="20%" scope="col"><@spring.message code='lun.wigh'/></th>
	</tr>
	</thead>                                      
	<tbody><input type="hidden" name="name"  value="${type}" />
	<input type="hidden" id="id"  value="${groupId}" />
	<#if pager.list?size==0||type=="other"><script type="text/javascript">
     $("#weighBtn").hide();
    </script></#if>
	
	<#list pager.list as item>
	
		<tr 
			<#if ((item_index+1) % 2 == 0) >class="oddrow"</#if>>
			<td class="c"><input name="name" type="checkbox" value="${item.id}" /></td>
	            <td>${item.poolName!}</td>
		        <td>${item.name!}</td>
		        <!-- <td>${item.lunSn!}</td>
		        <td>${item.lunIscsi!}</td> -->
		        <td>${item.size!}</td>
		        <td id="selectId"><#if type==null>${item.weigh!}<#else>
		        <select name="select">
		       <!-- <option>请分配权重</option> -->
		        <option>1</option>
		        <option>2</option>
		        <option>3</option>
		        <option>4</option>
		        <option>5</option>
		        <option>6</option>
		        <option>7</option>
		        <option>8</option>
		        <option>9</option>
		        </select></#if>
		        
		        </td>
	      </tr>
      
	</#list>
	</tbody>
</table>
<@pagination selectSize=false/>
</div>